//
//  NSDictionary+Additions.h
//  MONO
//
//  Created by 王松锋 on 2019/6/11.
//  Copyright © 2019 王松锋. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Additions)
+(NSDictionary*)loadPlistFile:(NSString*)fileName;


#pragma mark -字典解析相关

-(id)parseForKey:(id)aKey;


-(BOOL)safeBoolForKey:(NSString*)aKey;
-(id)safeObjectForKey:(NSString*)aKey;
-(NSString*)safeStringForKey:(NSString*)aKey;
-(NSArray*)safeArrayForKey:(NSString*)aKey;
-(NSDictionary*)safeDictionaryForKey:(NSString*)aKey;
-(NSInteger)safeIntegerForKey:(NSString*)aKey;
-(long long)safeLonglongForKey:(NSString*)aKey;
-(float)safeFloatForKey:(NSString*)aKey;
-(double)safeDoubleForKey:(NSString*)aKey;

@end

NS_ASSUME_NONNULL_END
